import 'package:flutter/cupertino.dart';
import 'package:free_table/components/app_item.dart';

class HomePage extends StatefulWidget{
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage>{
  @override
  Widget build(BuildContext context) {
    return GridView.count(
      crossAxisCount: 5, // 每行3个元素
      crossAxisSpacing: 10, // 水平间距
      mainAxisSpacing: 10, // 垂直间距
      padding: EdgeInsets.all(10), // 外边距
      children: List.generate(5, (index) {
        return AppItem();
      }),
    );
  }

}